import request from "@/utils/request";
// import gateway from "../../public/static/config";
let baseUrl = "http://172.16.20.1:30103";
// let baseUrl = gateway.baseUrl;
const login = {
  // 验证码
  getCode(data: any) {
    return request({
      url: `${baseUrl}/login-server/getGraphCaptcha`,
      method: "post",
      responseType: "blob",
      data: data,
    });
  },
  // 登录
  getLogin(data: any) {
    return request({
      url: `${baseUrl}/login-server/userLogin`,
      method: "post",
      data: data,
    });
  },
};

export default login;
